// 配置信息
import { defineStore } from "pinia"
import { apiGetIndexData } from '@/api/index.js'

let useIndexStore = defineStore("index", {
	state: () => {
		return {

		}
	},
	actions: {
		// 获取首页信息
		async getIndexData() {
			try {
				const { data } = await apiGetIndexData()
				return Promise.resolve('ok');
			} catch (error) {
				throw error;
				console.log(error, 'error');
			}
		}
	},
	getters: {},
})

export default useIndexStore